﻿using System;
using System.Linq;
using System.Collections.Generic;

namespace t_205_verk_hopur_12.Models
{
    public interface IVideoRepository
    {
        void AddVideo(Video newVideo);
        void Delete(Video newVideo);
        Video GetVideoByID(int videoID);
        IQueryable<Video> GetVideosByChannelID(int channelID);
        IQueryable<Video> GetApprovedVideosByChannelID(int channelID);
        bool HasUserVotedVideo(VideoVote videoVote);
        void Save();
        void VoteVideo(int videoID, int userID, int vote);
        IQueryable<ScheduleVideo> GetPopularVideoByChannel(int channelID);
    }
}
